package com.liqiye.paymanager.service.payment;

import com.liqiye.paymanager.bean.payment.*;
import org.springframework.stereotype.Service;

@Service
public class AdyenPaymentService implements PaymentService {

    @Override
    public PaymentResponse createPayment(PaymentRequest request) {
        // 1. 构造 Stripe 的 PaymentIntent 请求
        // 2. 使用 Stripe Java SDK 或 HTTP 请求
        // 3. 返回统一封装的 PaymentResponse

        PaymentResponse response = new PaymentResponse();
        response.setSuccess(true);
        response.setPlatformOrderId("pi_123456789");
        response.setPaymentUrl("https://checkout.stripe.com/pay/xxx");
        return response;
    }

    @Override
    public PaymentStatusResponse queryPayment(String platformOrderId) {

        return null;
    }

    @Override
    public CaptureResponse captureOrder(String orderId) {

        return null;
    }

    @Override
    public RefundResponse refund(RefundRequest request) {

        return null;
    }

    @Override
    public CallbackResponse handleCallback(String payload, String signature) {

        return null;
    }

}
